package Homework;

import java.util.Scanner;

public class HomeWork04 {
    public static void main(String[] args) {


//        int num;
//        int guessing;
//        Scanner sc=new Scanner(System.in);
//        num = (int) (Math.random()*1000+1);
//
//        //System.out.println(num);
//
//        while (true){
//            System.out.println("请猜测数字:");
//            guessing = sc.nextInt();
//            if(guessing > num){
//                System.out.println("大了,");
//            }else if(guessing < num){
//                System.out.println("小了,");
//            }else {
//                System.out.println("恭喜你猜对了");
//                break;
//            }
//        }

        int i=5;
        for(int n=1;n<=i;n++){
            System.out.println("行动是成功的阶梯");
        }

        //int i2=9;
        for(int n=1;n<=9;n++){
            System.out.println(n+"*9="+(n*9));
        }

        System.out.println();

        for(int n=1;n<=9;n++){
            if(n%2==0){
                continue;
            }
            System.out.println(n+"*9="+(n*9));
        }

        int sum = 0;

        for (int n=1;n<=100;n++){
            sum += n;
        }
        System.out.println(sum);

        //99乘法表
        for (int n=1;n<=9;n++){

            for (int n2=1;n2<=n;n2++){
                System.out.print(n2+"*"+n+"="+(n2*n)+"\t");
            }

            System.out.println();
        }


        int[] a=new int[6];
        int[] b={1,2,3};
        int[] c;
        c=new int[6];
        int[] d;
        d=new int[]{4,5,6};
        int[] e=new int[]{7,8};

        System.out.println(a.length);






    }
}
